Modified Dietz method